# -*- coding: utf-8 -*-

from django import forms
from traffic.models import Payment, Tariff, InternetChannel

class PayForm(forms.ModelForm):
    class Meta:
        model = Payment

class ChangeTariffForm(forms.Form):
    tariff = forms.ModelChoiceField(Tariff.objects.all(), label=u"Новый тариф")
    is_prepaid_dropped = forms.BooleanField(required=False, \
        label=u"Удалить уже накопленный трафик?")

class SelectChannelForm(forms.Form):
    channel = forms.ModelChoiceField(InternetChannel.objects.all(), label=u"Выберите канал")
